import React from 'react'
import img from '@/assets/images/404.webp'
import { Button } from 'antd'
import { useNavigate } from 'react-router-dom'
export default function errorRoute() {
  const Navigate = useNavigate()
  const goHome = () => {
    Navigate('/')
  }
  return (
    <div>
      <img src={img} />
      <Button onClick={goHome} type="primary">
        返回首页
      </Button>
    </div>
  )
}
